<template>
  <main class="home-container">
    <div class="hero-section">
      <h1>人生成长指南</h1>
      <p class="subtitle">探索自我提升的四个核心维度</p>
      <div class="cta-buttons">
        <router-link to="/cognition" class="cta-button primary">开始成长之旅</router-link>
      </div>
    </div>

    <div class="growth-dimensions">
      <h2>人生成长的四个维度</h2>
      <div class="dimensions-grid">
        <div class="dimension-card">
          <div class="card-icon">🧠</div>
          <h3>提升认知</h3>
          <p>拓展思维边界，提升思考深度与广度，培养批判性思维和创新能力。</p>
          <router-link to="/cognition" class="card-link">了解更多 →</router-link>
        </div>

        <div class="dimension-card">
          <div class="card-icon">💪</div>
          <h3>健身锻炼</h3>
          <p>强健体魄，提升身体素质，保持健康的生活状态，为人生奋斗提供坚实基础。</p>
          <router-link to="/fitness" class="card-link">了解更多 →</router-link>
        </div>

        <div class="dimension-card">
          <div class="card-icon">📚</div>
          <h3>知识学习</h3>
          <p>持续学习新知识，构建完整的知识体系，不断提升专业技能和个人素养。</p>
          <router-link to="/knowledge" class="card-link">了解更多 →</router-link>
        </div>

        <div class="dimension-card">
          <div class="card-icon">👥</div>
          <h3>社会化进程</h3>
          <p>提升人际交往能力，建立良好的社会关系，更好地融入社会并贡献价值。</p>
          <router-link to="/socialization" class="card-link">了解更多 →</router-link>
        </div>
      </div>
    </div>

    <div class="philosophy-section">
      <h2>我们的理念</h2>
      <p>真正的成长是一个全方位的过程，它不仅包括知识的积累和技能的提升，更涉及心智的成熟、身体的健康以及社会适应能力的发展。我们相信，只有在这四个维度上均衡发展，才能实现真正的人生价值。</p>
    </div>
  </main>
</template>

<style scoped>
.home-container {
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--vt-c-indigo), #42b883);
  color: white;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button.primary {
  background-color: white;
  color: var(--vt-c-indigo);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.growth-dimensions {
  margin-bottom: 3rem;
}

.growth-dimensions h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.dimension-card {
  background-color: var(--color-background-soft);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dimension-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.dimension-card h3 {
  margin-bottom: 1rem;
  color: var(--vt-c-indigo);
}

.dimension-card p {
  margin-bottom: 1.5rem;
  color: var(--color-text);
  line-height: 1.6;
}

.card-link {
  color: #42b883;
  text-decoration: none;
  font-weight: 500;
}

.card-link:hover {
  text-decoration: underline;
}

.philosophy-section {
  background-color: var(--color-background-soft);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.philosophy-section h2 {
  margin-bottom: 1.5rem;
}

.philosophy-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .home-container {
    padding: 1rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .dimensions-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
</style>
